<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>设置敏感操作密码</title>
		<meta name="keywords" content="知果汇" />
		<meta name="description" content="知果汇" />
		<link rel="SHORTCUT ICON" href="_IMG_/favicon.ico" />
		<link rel="stylesheet" href="_CSS_/form.css" />
		<link rel="stylesheet" href="_CSS_/reg.css" />
		<style type="text/css">
			h5{font-size: 20px;text-align:center;font-weight: normal;}
			.fillBox{width: 338px;display: inline-block;}
			.form-group{line-height: 40px;width: 420px;margin: 0 auto 20px auto;}
			.form-control{background: #F4F4F4;width: 290px;padding: 0 38px 0 10px;height: 40px;line-height: 40px;}
		</style>
	</head>
	<body>
		<form id="form1" action="" method="post" class='forms'>
			<h5>设置敏感操作密码</h5>
			<div class='form-group'>
				<label>用户名：</label>
				<input class='form-control loginName' type='text' placeholder="请输入您的用户名"/>
			</div>
			<div class='form-group'>
				<label>登录密码：</label>
				<input class='form-control password' type='password' placeholder="请输入账号登录密码"/>
			</div>
			<div class='form-group'>
				<label>支付密码：</label>
				<input class='form-control code' type='password' placeholder="请输入您想要设置的密码" oninput="if(value.length>6)value=value.slice(0,6)"/>
			</div>
			<div class='form-group'>
				<label>确认密码：</label>
				<input class='form-control cfmcode' type='password' placeholder="请再次输入密码进行确认" oninput="if(value.length>6)value=value.slice(0,6)"/>
			</div>
		</form>
	</body>
	<script src="_JS_/jquery-1.8.3.min.js"></script>
	<script src="_JS_/jquery.base64.js"></script>
	<script src="_JS_/jquery.cookie.js"></script>
	<script src="_JS_/common.js"></script>
	<script src="_P_/layer/layer.js"></script>
	<script type="text/javascript">
		$(function(){			
			//先绑定认证
			var userinfo=$.cookie('userinfo');
			if(userinfo) {
				var user_login = $.base64.decode(userinfo).split(",");
				var uid = user_login[0];
				$.ajax({
					type: "get",
					url: "/index.php/api/account/check_person",
					data:{
						'uid':uid
					},
					dataType: 'jsonp',
					beforeSend: function () {
					var index = layer.load(1, {
						shade: [0.1, '#333333'] //0.1透明度的白色背景
					});
					},
					success: function (msg) {
						layer.closeAll();
						if (msg.code == 200) {
							layer.msg('已设置密码！', {icon: 1});
						}
						if (msg.code == 1000) {

						}
					}
				});
			}else{
				layer.msg('还未登录！', {icon: 5});
			}
		});
	</script>
</html>
